package cn.gx.kevin.common.utils;

/**
 * @ClassName: UrlInfo
 * @Description: TODO
 * @author hjwen
 * @date 2017年10月2日 上午8:42:17
 * 
 */
public class UrlInfo {

	private String controller;
	private String authController = null;//权限url	
	
	private String cmd;//权限码
	private boolean rootRequest = false;
	private String url;	
	private String ctx;

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	private String method;
	
	/**
	 * 权限对应url
	 * **/
	public String getAuthController() {
		return authController == null ? controller : authController;
	}

	/**
	 * 权限对应url
	 * **/
	public void setAuthController(String authController) {
		this.authController = authController;
	}

	public String getCtx() {
		return ctx;
	}

	public void setCtx(String ctx) {
		this.ctx = ctx;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getController() {
		return controller;
	}

	public void setController(String controller) {
		this.controller = controller;
	}

	/**
	 * 权限码
	 * **/
	public String getCmd() {
		return cmd;
	}
	/**
	 * 权限码
	 * **/
	public void setCmd(String cmd) {
		this.cmd = cmd;
	}

	@Override
	public String toString() {
		return "UrlInfo [controller=" + controller + ", cmd=" + cmd + ", rootRequest=" + rootRequest + "]";
	}

	public boolean isRootRequest() {
		return rootRequest;
	}

	public void setRootRequest(boolean isRootRequest) {
		this.rootRequest = isRootRequest;
	}

}
